package com.cet.designpatterns.factory.factorymethod.lxf;

import java.math.BigDecimal;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-04 21:56
 **/
public class NumberFactoryImpl implements NumberFactory {
    @Override
    public Number parse(String s) {
        return new BigDecimal(s);
    }
}
